package com.woniu.car.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 
 * </p>
 *
 * @author kk
 * @since 2022-08-09
 */
@TableName("t_car")
@ApiModel(value = "Car对象", description = "")
public class TCar implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("车辆id")
    @TableId(value = "car_id", type = IdType.AUTO)
    private Integer carId;

    @ApiModelProperty("车辆编号")
    private Integer carNum;

    @ApiModelProperty("车辆类型")
    private String carType;

    @ApiModelProperty("车牌号码")
    private String carPlate;



    @ApiModelProperty("准载重量")
    private Double maxWeight;

    @ApiModelProperty("准载体积")
    private Double maxVolume;

    @ApiModelProperty("状态")
    private Integer status;

    @ApiModelProperty("承运商id")
    private Integer carrierId;

    @ApiModelProperty("车类型id")
    private Integer cartypeId;

    @ApiModelProperty("车商对象")
    @TableField(exist = false)
    private TCarrier TCarrier;
    @TableField(exist = false)
    @ApiModelProperty("车类型对象")
    private TCarType carTypes;

    @ApiModelProperty("版本号")
    private Integer version;

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    public Integer getCarId() {
        return carId;
    }

    public void setCarId(Integer carId) {
        this.carId = carId;
    }
    public Integer getCarNum() {
        return carNum;
    }

    public void setCarNum(Integer carNum) {
        this.carNum = carNum;
    }

    public String getcarPlate() {return  carPlate;}

    public void setcarPlate(String  carPlate) {
        this. carPlate =  carPlate;
    }


    public Double getMaxWeight() {
        return maxWeight;
    }

    public void setMaxWeight(Double maxWeight) {
        this.maxWeight = maxWeight;
    }
    public Double getMaxVolume() {
        return maxVolume;
    }

    public void setMaxVolume(Double maxVolume) {
        this.maxVolume = maxVolume;
    }
    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
    public Integer getCarrierId() {
        return carrierId;
    }

    public void setCarrierId(Integer carrierId) {
        this.carrierId = carrierId;
    }
    public Integer getCartypeId() {
        return cartypeId;
    }

    public void setCartypeId(Integer cartypeId) {
        this.cartypeId = cartypeId;
    }

    public String getCarType() {
        return carType;
    }

    public void setCarType(String carType) {
        this.carType = carType;
    }



    public TCarrier getCarrier() {
        return TCarrier;
    }

    public void setCarrier(TCarrier TCarrier) {
        this.TCarrier = TCarrier;
    }

    public TCarType getCarTypes() {
        return carTypes;
    }

    public void setCarTypes(TCarType carTypes) {
        this.carTypes = carTypes;
    }

    @Override
    public String toString() {
        return "Car{" +
                "carId=" + carId +
                ", carNum=" + carNum +
                ", carType='" + carType + '\'' +
                ", carPlate='" + carPlate + '\'' +
                ", maxWeight=" + maxWeight +
                ", maxVolume=" + maxVolume +
                ", status=" + status +
                ", carrierId=" + carrierId +
                ", cartypeId=" + cartypeId +
                ", carrier=" + TCarrier +
                ", carTypes=" + carTypes +
                ", version=" + version +
                '}';
    }
}
